﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Task/Task.master" AutoEventWireup="true"
    StylesheetTheme="Content" CodeFile="TaskNew.aspx.cs" Inherits="TaskNew_WorkTask" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table cellspacing="0" cellpadding="0" width="100%" class="intable" border="0">
        <caption>
            <span>添加任务</span>
        </caption>
        <tr>
            <td height="25" width="20%" align="left">
                工作任务日期：
            </td>
            <td height="25" width="*" align="left">
                <asp:DropDownList ID="DptYear" Width="150px" runat="server">
                </asp:DropDownList>
                <asp:DropDownList ID="DptMonth" Width="150px" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td height="25" width="20%" align="left">
                工作任务：
            </td>
            <td height="25" width="*" align="left">
                <asp:TextBox ID="txtWorkTask" runat="server" Width="400px" Height="70px" 
                    TextMode="MultiLine"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtWorkTask"
                    Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td height="25" width="20%" align="left">
                分值：
            </td>
            <td height="25" width="*" align="left">
                <asp:TextBox ID="txtMarking" runat="server" Width="400px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtMarking"
                    Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
                <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtMarking"
                    Display="Dynamic" ErrorMessage="请输入数字" Type="Double" MaximumValue="9999" MinimumValue="0"></asp:RangeValidator>
            </td>
        </tr>
        <%--<tr visible="false">
            <td height="25" width="20%" align="left">
                得分：
            </td>
            <td height="25" width="*" align="left">
                <asp:TextBox ID="txtScore" runat="server" Width="400px"></asp:TextBox>
            </td>
        </tr>--%>
        <tr>
            <td height="25" width="20%" align="left">
                备注：
            </td>
            <td height="25" width="*" align="left">
                <asp:TextBox ID="txtReMark" runat="server" Width="400px"></asp:TextBox>
               <%-- <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtScore"
                    Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>--%>
               <%-- <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="txtScore"
                    Display="Dynamic" ErrorMessage="请输入数字" Type="Double" MaximumValue="9999" MinimumValue="0"></asp:RangeValidator>--%>
            </td>
        </tr>
        <tr>
            <td height="25" width="20%" align="left">
                排序：
            </td>
            <td height="25" width="*" align="left">
                <asp:DropDownList ID="DptOrderID" runat="server">
                </asp:DropDownList>
                <asp:CheckBox ID="CBXIsYear" runat="server" Text="设为年度量化任务" AutoPostBack="True" 
                    oncheckedchanged="CBXIsYear_CheckedChanged" />
            </td>
        </tr>
        <tr>
            <td height="25" width="20%" align="left">
                &nbsp;
            </td>
            <td height="25" width="*" align="left">
                <asp:Button ID="btnAdd" runat="server" Text="提 交" OnClick="btnAdd_Click"></asp:Button>
                <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="返回" 
                    ValidationGroup="0" />
                <asp:Label ID="lblpromt" ForeColor="Red" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td height="25" width="20%" align="left">
                &nbsp;
            </td>
            <td height="25" width="*" align="left">
                &nbsp;
            </td>
        </tr>
    </table>
</asp:Content>
